#include <stdio.h>

#define LIMIT 1000000

int binomial(int n, int r)
{
	if (r==1)return 1;
	if (n==r)return 1;
	int l=1;
	double nt=1, nd=1;
	for (l=1; l<=r; l++) {
		nt = nt*(n-l+1);
		nd *=l; 
	}
	return nt/nd;
}

int main()
{
	int n, r, counter = 0;
	for (n=23; n<=100; n++) {
		for (r = 2; r<n/2+1; r++) {
			if (binomial(n, r) > LIMIT) {
				counter = counter+n-2*r+1;
				break;
			}
		}
	}
	printf("%d \n", counter);
}
